package game.breeze.screen.group;

import game.breeze.screen.actors.MotionActor;

import com.badlogic.gdx.scenes.scene2d.Group;

public class SpriteGroup extends Group {
	public void update(float delta) {
		for (int i = 0; i < getActors().size(); i++) {
			if (getActors().get(i) instanceof MotionActor) {
				((MotionActor) getActors().get(i)).update(delta);
			}
		}
	}

	@Override
	public void clear() {
		for (int i = 0; i < getActors().size(); i++) {
			if (getActors().get(i) instanceof MotionActor) {
				((MotionActor) getActors().get(i)).dispose();
			}
		}
		super.clear();
	}

	@Override
	public void clearActions() {
		super.clearActions();
	}
}
